feat(cmd): Make "extract" more user-friendly, matching common archive tools#653
Merged
willscott merged 1 commit intoipld:masterfrom Mar 14, 2026
Merged
Conversation
f1f581c to
9355b5a
Compare
Contributor
Author
|
@willscott @rvagg Gentle ping, this and #642 will allow me to implement support for reading CAR files in KDE's Ark. |
Member
|
I'm fine with the changes to output / specifying of partial extraction. I think you should retain the ability to stream from stdin or pipe from output of another command. there's no reason to remove that functionality and it does not reduce consistency. (e.g. tar / gz / etc all support extraction from stdin) |
Contributor
Author
|
Thank you. Let's use the dash ( |
… tools
Usage: car extract --file file.car [--output output] [mydir/mysubdir] [mydir/mysubdir2/file] [mydir2] [myfile]...
This also makes "extract" much more consistent with "create" and matching common archive tools:
- Not specifying any paths results in a complete extraction.
- To read from stdin a single dash ('-') is specified as the input file.
9355b5a to
ea2a490
Compare
Contributor
Author
|
@willscott Done. |
willscott
approved these changes
Mar 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Usage:
This also makes
extractmuch more consistent withcreateand matching common archive tools:-) is specified as the input file.